<template>
	<view>
		<rich-text :nodes="article" class="ql-editor"></rich-text>
	</view>
</template>

<script>
	import {
		getBannerById
	} from "@/api/api.js";
	import '@/components/quillCSS/quill.bubble.css'
	import '@/components/quillCSS/quill.core.css'
	import '@/components/quillCSS/quill.snow.css'
	import uParse from '@/components/u-parse/u-parse.vue'
	export default {
		components: {
			uParse //注册组件
		},
		data() {
			return {
				article:""
			}
		},
		methods: {

		},
		onLoad(options) {
			var me = this;
			var bannerInfo = JSON.parse(decodeURIComponent(options.bannerInfo));
			getBannerById(bannerInfo.bannerId).then(
				(res) => {
					if (res.data.sysBannerItemList.length > 0) {
						me.article = res.data.sysBannerItemList[0].content;
					}
				}
			);
		}
	}
</script>

<style>

</style>
